support x64

This commit is contained in:
Zero Fanker 2024-04-10 22:41:58 -04:00
parent 99f9d7eb83
commit 3e334ca731
16 changed files with 549 additions and 16 deletions

View file

@ -19,6 +19,7 @@
#pragma once
#include <vartypes.h>
#include <xcc/data_ref.h>
class Cblowfish
{

View file

@ -34,7 +34,7 @@ public:
bool is_valid() const
{
const t_tmp_ts_header& h = header();
int size = get_size();
auto const size = get_size();
if (sizeof(t_tmp_ts_header) > size ||
!h.cblocks_x || !h.cblocks_y ||
h.cx != 48 && h.cx != 60 ||

View file

@ -1,3 +1,4 @@
#pragma once
/*
XCC Utilities and Library
Copyright (C) 2000 Olaf van der Spek <olafvdspek@gmail.com>

View file

@ -45,7 +45,7 @@ public:
int get_c_spans(int i) const
{
return get_section_tailer(i)->span_end_ofs - get_section_tailer(i)->span_start_ofs >> 2;
return (get_section_tailer(i)->span_end_ofs - get_section_tailer(i)->span_start_ofs) >> 2;
}
int get_c_section_tailers() const