How to “NOT” a register in mips assembly
Since there isn't a NOT logical operator in mips assembly, how can one "not" the contents of a register?
Load -1 into another register, then XOR the registers. https://www.cs.umd.edu/class/sum2003/cmsc311/Notes/Mips/bitwise.html
You can use nor and the zero-register to fit everything into one instruction: nor $<dest_reg> $<in_reg> $zero Another approach would be using xor and -1 as this is encoded as 1111...1111 in 2s-component. li $<help_reg>, -1 # load -1 into help-register xor $<dest_reg>, $<in_reg>, $<help_reg> # actual not-operation
Fast Text Search Over Logs
Secret santa algorithm
Algorithm to blend gradient filled corners in image
Non-repeating pseudo random number stream with 'clumping'
given 5 numbers, what is the minimum number of comparisons needed to find the median?
How many floating-point operations for Strassen's algorithm for a matrix of size k x k?
Is there a simple algorithm that can determine if X is prime, and not confuse a mere mortal programmer?
How are ssl certificates verified?
Extracting Leaf paths from n-ary tree in F#
How to sort 32bit numbers to find unique entries?
room/timeslot schedule optimization
What's a good, non-recursive algorithm to calculate a Cartesian product?
Cluster and rank blogs by logical categories
An algorithm for splitting a sequence in equally spaced, non colliding subsequences
Smooth average of sales data
Array Fill w/Grouping