Advanced Search

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - OGsus

Pages: [1]
1
Tutorial Collection / ACS, Signed Integers, and Bit Shifts
« on: December 03, 2013, 09:11:15 AM »
Quote from: "*Alice"
Multiplication by 2^n is the same as bit shifting to the left (<<) by n.

Division by 2^n is the same as bit shifting to the right (>>) by n.

The ACS right-shift is what is called an "arithmetic shift", i.e. it preserves the sign.

Code: [Select]
ACS, Signed Integers, and BitShifts:
Test 0: 32
Int Value: 32
Binary Value:
 3         2         1         0
10987654321098765432109876543210
00000000000000000000000000100000

Test 1: 32 >> 2
Int Value: 8
Binary Value:
 3         2         1         0
10987654321098765432109876543210
00000000000000000000000000001000

Test 2: 32 << 2
Int Value: 128
Binary Value:
 3         2         1         0
10987654321098765432109876543210
00000000000000000000000010000000

Test 3: -32
Int Value: -32
Binary Value:
 3         2         1         0
10987654321098765432109876543210
11111111111111111111111111100000

Test 4: -32 >> 2
Int Value: -8
Binary Value:
 3         2         1         0
10987654321098765432109876543210
11111111111111111111111111111000

Test 5: -32 << 2
Int Value: -128
Binary Value:
 3         2         1         0
10987654321098765432109876543210
11111111111111111111111110000000

2
Help & Editing / @ACS professionals
« on: December 01, 2013, 07:29:48 PM »
Please do not question the mathematics library in progress that I will release soon, and please do not skid it.
(click to show/hide)

Can anyone tell me why the first call to atan() in script 13337 always passes negatives?

3
Anything Goes / A Curious, Unofficial Cutstuff Census
« on: November 30, 2013, 05:43:59 AM »
Out of curiosity, I'm surveying the cutstuff populace.  If you have time, please fill out this survey.  Thank you, and have a nice day.

I want to see how diverse the community is and what kind of mainstreams there are here.

Click here to view responses

This thread is open to discussion of the responses and the diversity of the community and any plausible effects of it.

EDIT:  Due to human idiocy that I should have seen coming, I'm going to publish a link to expurgated results instead of normal, charted results.

4
MM8BDM Discussion / OGsus's UltraFabulous Testing Server
« on: November 27, 2013, 10:20:00 PM »
I am currently hosting a server called "OGsus's UltraFabulous Testing Server".

Every time it's up, it will be testing an item that I have created.  If you wish to see what that item is, you may join me.  I will be testing it there.

I am not sure whether this thread belongs in this forum since it is talking about a mod file, but it seems to be the closest subject-match.

Current Wad Test:
OGsusWeps-v0.05Test -- on best-ever, will autodownload.
Changelog:
InverseKickWep added

Pages: [1]