Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

__m128i definition in BarsWF SSE2 project

Featured Replies

Posted

Hi again. BarsWF once again.
So the CUDA project I got it working.
The SSE2 project is still bogus.

I could notice only these warning:
1>LINK : warning C4743: 'union __m128i sse2_nodata' has different size in 'C:\BarsWF-master\md5.cpp' and 'C:\BarsWF-master\global.cpp': 18 and 16 bytes
....
1>LINK : warning C4743: 'union __m128i gpu_mask_2_128' has different size in 'C:\BarsWF-master\algo\md5\algo_md5.cpp' and 'C:\BarsWF-master\global.cpp': 18 and 16 bytes

In global.h is defined as fallows:

extern global_data *g;

//:-[ Not reliable as class member
extern __m128i gpu_mask_2_128;
extern __m128i CONST_MAX128,sse2_nodata,sse2_lendata,target_sse[4];
extern __m128i md5_const_sse2[64];

In global.cpp is this:

global_data *g = NULL;

__m128i gpu_mask_2_128;
__m128i CONST_MAX128,sse2_nodata,sse2_lendata,target_sse[4];
__m128i md5_const_sse2[64];

Any way to fix the warning?

https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4743?view=vs-2019
 

 

Edited by CodeExplorer

  • Author

I did this on md5.cpp:

int main(int argc, char **argv)
{    
    char cresult[100];
    int Size1 = sizeof(gpu_mask_2_128);
    sprintf(cresult, "__m128i size = %d", Size1);

This prints 16 bytes: which is the right size: 128 bits / 8 = 16 bytes!

So I guess I should just ignore this warning!
 

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.