Search found 62 matches

by stephanbrunker
Jul 08, 2015 20:12
Forum: General
Topic: Illegal mov in Assembler to UDT
Replies: 12
Views: 1010

Re: Illegal mov in Assembler to UDT

Now, I've running addition, subtraction and multiply, even if I cannot access the UDT directly from the asm inside the operators. But then, the DIV command doesn't work, while at the same place IDIV works (replace IDIV with DIV and an error occurs): (and it's the same with DWORD or QWORD operation) ...
by stephanbrunker
Jul 08, 2015 17:17
Forum: General
Topic: Illegal mov in Assembler to UDT
Replies: 12
Views: 1010

Re: Illegal mov in Assembler to UDT

Oh, I tried -gen gas and there is a new error: error 82: Selected -gen gas ASM backend for non-x86 CPU, x86-64 ??? Okay, here is the very first beginning of the project. Without -gen gas, it compiles now, but it returns zero for the addition. If I DIM two Ulongints in the Operator, move the result t...
by stephanbrunker
Jul 08, 2015 8:13
Forum: General
Topic: Illegal mov in Assembler to UDT
Replies: 12
Views: 1010

Re: Illegal mov in Assembler to UDT

Thank you for the help. I know that with assembler code I'm bound to a specific platform. But in this case, the x86 version of the code is already running, and I want to add a 64-bit version, which is (hopefully) many times faster because of the wider blocksize. Crypto applications running very slow...
by stephanbrunker
Jul 07, 2015 20:23
Forum: General
Topic: Illegal mov in Assembler to UDT
Replies: 12
Views: 1010

Illegal mov in Assembler to UDT

Hello, there's an tutorial at freebasic-portal.de about Inline-Assembler. Okay, last update was 2009 ... But this code doesn't compiles anymore (but surely it did anno 2009): Type pnt x As Integer y As Integer End Type Dim Punkt As pnt Punkt.x = 17 Punkt.y = 55 Print Punkt.x, Punkt.y Asm mov eax, [P...
by stephanbrunker
Mar 10, 2015 0:48
Forum: General
Topic: 64-bit Support: Multiplication to 128bit
Replies: 18
Views: 3613

Re: 64-bit Support: Multiplication to 128bit

Sorry for the late reply ... working on other topics ... @MichaelW: Thank you for the 64 x 64 -> 128bit asm. I'll try this out - hopefully I can speed up the RFC4418 Umac (Carter-Wegman MAC) some magnitudes on x64 systems vs. the x86 version, because it contains these operations. If / when I get the...
by stephanbrunker
Dec 17, 2014 11:53
Forum: General
Topic: 64-bit Support: Multiplication to 128bit
Replies: 18
Views: 3613

Re: 64-bit Support: Multiplication to 128bit

I have no clue about assembler programming, but I've read here: http://msdn.microsoft.com/en-us/library/windows/hardware/ff561499(v=vs.85).aspx that there're sixteen 128bit SSE Registers. I don't know for which purpose, but floating point calculations, divisions and multiplications of 64bit data see...
by stephanbrunker
Dec 16, 2014 16:35
Forum: General
Topic: 64-bit Support: Multiplication to 128bit
Replies: 18
Views: 3613

64-bit Support: Multiplication to 128bit

As far as i know, the x64-Architecture has a 128bit Register. My question is: Is a multiplication of two 64-bit Integers to a 128-bit Integer supported or is that yet to come? In the 32-bit, you can multiply Long * Long = Ulongint. I ask because a couple of crypto algorythms use that multiplication ...
by stephanbrunker
Dec 16, 2014 16:26
Forum: General
Topic: Hash function
Replies: 5
Views: 996

Re: Hash function

If you're looking for something with the source in FreeBasic, i've implemented BLAKE-256 (derivated from Salsa20, SHA-3 finalist and pretty fast) and Keccak 1600/1024 and 800/480 (SHA-3). I just have to check if the results are exactly the same as in the documentation because of Bit interleaving and...
by stephanbrunker
Dec 15, 2014 0:52
Forum: Libraries
Topic: imagemagick
Replies: 0
Views: 783

imagemagick

Hello, does anybody already made a translation for the imagemagick headers? As far as i can see, there're a lot of them. If nobody has done this already, is there an alternative program for image manipulation? Or should I translate all the headers myself? I have to test it, but I've translated the W...
by stephanbrunker
Jun 11, 2014 14:34
Forum: Community Discussion
Topic: Scope and Types
Replies: 4
Views: 730

Re: Scope and Types

Thanks,

I saw that solution in the link to the bugreport, too. It's now just to make it a habit to use len(()) for expressions. Better that than searching for hours why your code don't work ...

Perhaps you can update the documentation? That LEN searches first for types, and then for expressions?
by stephanbrunker
Jun 11, 2014 12:08
Forum: Community Discussion
Topic: Scope and Types
Replies: 4
Views: 730

Scope and Types

Hello, unwillingly I encountered a hard-to-find problem. If you're designing a program which includes the windows.bi or anything else with a lot of prefinied types, there is a bug (or inexpected behavior) if you dimensionate a variable which name is already one of the types. And this is unaffected b...
by stephanbrunker
Mar 12, 2014 17:18
Forum: General
Topic: Vtable different between C++ and Freebasic? [SOLVED]
Replies: 9
Views: 845

Re: Vtable different between C++ and Freebasic?

Thank you all, but I've got the problem fixed! (and it was a hard one to find!): The problem was the IsEqualIID - Function in QueryInterface . Following the description, it should be returning TRUE or FALSE. But that isn't correct. After printing every IID's in the communication and comparing manual...
by stephanbrunker
Mar 12, 2014 9:08
Forum: General
Topic: Vtable different between C++ and Freebasic? [SOLVED]
Replies: 9
Views: 845

Re: Vtable different between C++ and Freebasic?

Thank you for looking - the error has to be somewhere else, because the IDropTarget Interface works correctly and get it's methods called in the right order. My next guess is a maybe incorrect handling of the QueryInterface calls. Before DoDragDrop calls one of the interfaces' methods, it confirms w...
by stephanbrunker
Mar 11, 2014 21:42
Forum: General
Topic: Vtable different between C++ and Freebasic? [SOLVED]
Replies: 9
Views: 845

Vtable different between C++ and Freebasic? [SOLVED]

Hello, I'm trying to implement some Windows Interfaces in Freebasic, using virtual methods in the same manner as windows does: Type JUnknown EXTENDS OBJECT 'IUnknown Interface Declare Constructor() Declare Destructor() 'Methods: 'IUnknown Interface: Declare Virtual Function QueryInterface (ByVal iid...
by stephanbrunker
Mar 03, 2014 10:43
Forum: General
Topic: Windows header files
Replies: 6
Views: 899

Re: Windows header files

Okay, "quite incomplete" doesn't meant an absolute value. But relatively, it's seems frozen since 2008 and while I'm writing a tutorial about Windows GUI programming in reference to the MSDN, every lecture contains some missing definitions. The next tutorial is about the Drag&Drop Inte...

Go to advanced search