From 1381b51ad4bff77f5fcbbd50fd5f669246d5b8d0 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Wed, 1 Apr 2015 19:14:18 -0700 Subject: [PATCH] Update erasure package from minio-io/erasure --- Godeps/Godeps.json | 2 +- .../_workspace/src/github.com/minio-io/erasure/ec_types.h | 6 +++--- .../src/github.com/minio-io/erasure/erasure_decode.go | 7 ++++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json index c75c5192..cb45ccbc 100644 --- a/Godeps/Godeps.json +++ b/Godeps/Godeps.json @@ -32,7 +32,7 @@ }, { "ImportPath": "github.com/minio-io/erasure", - "Rev": "2a52bdad9b271ef680374a22f0cb68513a79ebf5" + "Rev": "3cece1a107115563682604b1430418e28f65dd80" }, { "ImportPath": "github.com/minio-io/minio/pkg/utils/split", diff --git a/Godeps/_workspace/src/github.com/minio-io/erasure/ec_types.h b/Godeps/_workspace/src/github.com/minio-io/erasure/ec_types.h index 91a80997..62e61e2d 100644 --- a/Godeps/_workspace/src/github.com/minio-io/erasure/ec_types.h +++ b/Godeps/_workspace/src/github.com/minio-io/erasure/ec_types.h @@ -2,7 +2,7 @@ Copyright(c) 2011-2015 Intel Corporation All rights reserved. Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions + modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. @@ -41,7 +41,7 @@ extern "C" { #endif -#ifndef __unix__ +#if !defined(__unix__) && !defined(__APPLE__) #ifdef __MINGW32__ # include <_mingw.h> #endif @@ -59,7 +59,7 @@ typedef unsigned char UINT8; #endif -#ifdef __unix__ +#if defined(__unix__) || defined(__APPLE__) # define DECLARE_ALIGNED(decl, alignval) decl __attribute__((aligned(alignval))) # define __forceinline static inline #else diff --git a/Godeps/_workspace/src/github.com/minio-io/erasure/erasure_decode.go b/Godeps/_workspace/src/github.com/minio-io/erasure/erasure_decode.go index 80e9e57e..91c42ce1 100644 --- a/Godeps/_workspace/src/github.com/minio-io/erasure/erasure_decode.go +++ b/Godeps/_workspace/src/github.com/minio-io/erasure/erasure_decode.go @@ -32,9 +32,10 @@ import ( // blocks. Decode can withstand data loss up to any M number of blocks. // // "encodedDataBlocks" is an array of K data blocks and M parity -// blocks. Data blocks are position and order dependent. Missing blocks -// are set to "nil". There must be at least "K" number of data|parity -// blocks. +// blocks. Data blocks are position and order dependent. Missing blocks +// are set to "nil". There must be at least "K" number of data|parity +// blocks. +// // "dataLen" is the length of original source data func (e *Erasure) Decode(encodedDataBlocks [][]byte, dataLen int) (decodedData []byte, err error) { var source, target **C.uchar