Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
flanglet committed Jun 6, 2024
1 parent 2d9265b commit eb5391c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion v2/entropy/AdaptiveProbMap.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func NewAdaptiveProbMap(mapType int, n, rate uint) (AdaptiveProbMap, error) {
return newFastLogisticAdaptiveProbMap(n, rate)
}

return nil, errors.New("Unknow APM type")
return nil, errors.New("Unknown APM type")
}

func newLogisticAdaptiveProbMap(n, rate uint) (*LogisticAdaptiveProbMap, error) {
Expand Down
2 changes: 1 addition & 1 deletion v2/entropy/FPAQCodec.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func (this *FPAQEncoder) BitStream() kanzi.OutputBitStream {
}

// Dispose must be called before getting rid of the entropy encoder
// This idempotent implmentation writes the last buffered bits into the
// This idempotent implementation writes the last buffered bits into the
// bitstream.
func (this *FPAQEncoder) Dispose() {
if this.disposed == true {
Expand Down
4 changes: 2 additions & 2 deletions v2/transform/EXECodec.go
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ func (this *EXECodec) forwardARM(src, dst []byte, codeStart, codeEnd int) (uint,

if isBL == true {
// opcode(6) + sgn(1) + offset(25)
// Absolute target address = srcIdx +/- (offet*4)
// Absolute target address = srcIdx +/- (offset*4)
offset := int(int32(instr & _EXE_ARM_B_ADDR_MASK))

if instr&_EXE_ARM_B_ADDR_SGN_MASK == 0 {
Expand All @@ -441,7 +441,7 @@ func (this *EXECodec) forwardARM(src, dst []byte, codeStart, codeEnd int) (uint,
val = opcode1 | (addr >> 2)
} else { // isCB == true
// opcode(8) + sgn(1) + offset(18) + register(5)
// Absolute target address = srcIdx +/- (offet*4)
// Absolute target address = srcIdx +/- (offset*4)
offset := (instr & _EXE_ARM_CB_ADDR_MASK) >> _EXE_ARM_CB_REG_BITS

if instr&_EXE_ARM_CB_ADDR_SGN_MASK == 0 {
Expand Down
2 changes: 1 addition & 1 deletion v2/transform/FSDCodec.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func (this *FSDCodec) Forward(src, dst []byte) (uint, uint, error) {

// Check several step values on a few sub-blocks (no memory allocation)
count10 := count / 10
count5 := 2 * count10 // count5=count/5 doest not guarantee count5=2*count10 !
count5 := 2 * count10 // count5=count/5 does not guarantee count5=2*count10 !
in0 := src[0*count5:]
in1 := src[2*count5:]
in2 := src[4*count5:]
Expand Down
2 changes: 1 addition & 1 deletion v2/transform/SBRT.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
// SBR(alpha) is defined by sbr(x, alpha) = (1-alpha)*(t-w1(x,t)) + alpha*(t-w2(x,t))
// where x is an item in the data list, t is the current access time and wk(x,t) is
// the k-th access time to x at time t (with 0 <= alpha <= 1).
// See [Two new families of list update algorihtms] by Frank Schulz for details.
// See [Two new families of list update algorithms] by Frank Schulz for details.
// SBR(0)= Move to Front Transform
// SBR(1)= Time Stamp Transform
// This code implements SBR(0), SBR(1/2) and SBR(1). Code derived from openBWT
Expand Down

0 comments on commit eb5391c

Please sign in to comment.