128-bit

What is going to happen to our primitive types when 128-bit processors come out?

When 64-bit processors came out, it wasn't too big of a deal. Sure, C++ people had to deal with the fact that their 32-bit pointer math doesn't work on 64-bit machines, but that's what you get for not using sizeof (or not using Java!), but in most cases, our languages already had 64-bit primitives, so all the compiler needed to do was ...

Add and Subtract 128 Bit Integers in C(++)

Hello :) I'm writing a compressor for a long stream of 128 bit numbers. I would like to store the numbers as differences -- storing only the difference between the numbers rather than the numbers themselves because I can pack the differences in fewer bytes because they are smaller. However, for compression then I need to subtract these...

Fastest way to convert binary to decimal?

I've got four unsigned 32-bit integers representing an unsigned 128-bit integer, in little endian order: typedef struct { unsigned int part[4]; } bigint_t; I'd like to convert this number into its decimal string representation and output it to a file. Right now, I'm using a bigint_divmod10 function to divide the number by 10, kee...

How can I test a browser to see if it supports 128-bit encryption?

I have been given the task of finding a replacement for a piece of old code. I'm assuming it tested to see if the browser supports 128-bit encryption. Here's the old code: (I purposely split the link into 4 lines) http://www.verisign.com/update-cgi/outPage.exe ?good=../docs/html/good.html &nsbad=../docs/html/upgradeNSonly.html &ie2=../d...

Are 64 bit programs bigger and faster than 32 bit versions?

I suppose I am focussing on x86, but I am generally interested in the move from 32 to 64 bit. Logically, I can see that constants and pointers, in some cases, will be larger so programs are likely to be larger. And the desire to allocate memory on word boundaries for efficiency would mean more white-space between allocations. I have al...

Is there a library or other way to do 128-bit math operations?

I am writing a cryptography application and need to work with 128 bit integers. In addition to standard add, subtract, multiply, divide, and comparisons, I also need a power and modulo function as well. Does anyone know of a library or other implementation that can do this? If not 128-bit, is there a 64-bit option available? ...

DataType for storing a long serial number (10 bytes)

We have a device which has a 10 byte serial number which must be read into our application and stored into a .net datatype. In the device it is stored as an unsigned 10-byte (80-bit) number. I don't expect we will be performing any mathematical operations on this number, but only displaying it to the user. The .NET framework doesn't ha...